/*
 * IntegerEx.h
 *
 *  Created on: Aug 7, 2011
 *      Author: dino
 */

#ifndef INTEGEREX_H_
#define INTEGEREX_H_

#include "Expression.h"

class IntegerEx: public Expression {
	long 	value;
public:

	long getValue() const { return value; }

	IntegerEx(long value);
	virtual ~IntegerEx();

	bool simplify();

	Expression* add(Expression* expression);
	Expression* substract(Expression* expression);

	Expression* addToInteger(IntegerEx* integer);
	Expression* substractFromInteger(IntegerEx* integer);

	void toString(ostream& out);

};

#endif /* INTEGEREX_H_ */
